import ax from "@/utils/axios";

export function getList(data = {}) {
  return ax.request({
    url: "/posts/list",
    method: "get",
    data: data,
  });
}

export function login(data = {}) {
  return ax.request({
    url: "/auth/login",
    method: "post",
    data: data,
  });
}
